
/* 基本样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.appContainer {
  display: flex;
  min-height: 100vh;
}

/* 左侧导航栏样式 */
.sidebar {
  width: 280px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 25px 20px;
  box-shadow: 2px 0 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* 添加按钮样式 */
.addBtn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 25px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.addBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.addBtn i {
  margin-right: 8px;
  font-size: 16px;
}

/* 侧边栏分区样式 */
.sidebarSection {
  margin-bottom: 25px;
}

.sidebarTitle {
  font-size: 14px;
  font-weight: 600;
  color: #bdc3c7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
}

.sidebarTitle i {
  margin-right: 10px;
  font-size: 16px;
  color: #3498db;
}

/* 侧边栏项目样式 */
.sidebarItem {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.sidebarItem:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateX(3px);
}

.sidebarItem.active {
  background-color: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.sidebarItem i {
  margin-right: 12px;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* 标签项目样式 */
.tagItem {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tagItem:hover {
  background-color: rgba(255,255,255,0.05);
}

.tagCircle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 12px;
  display: inline-block;
}

.tagCircleSocial { background-color: #e74c3c; }
.tagCirclePersonal { background-color: #f39c12; }
.tagCircleClient { background-color: #9b59b6; }
.tagCircleEvent { background-color: #1abc9c; }
.tagCircleWork { background-color: #3498db; }

/* 图标样式 */
.icon-plus:before { content: "+"; }
.icon-filter:before { content: "⚙️"; }
.icon-tag:before { content: "🏷️"; }
.icon-star:before { content: "⭐"; }
.icon-calendar:before { content: "📅"; }
.icon-today:before { content: "☀️"; }
.icon-check:before { content: "✓"; }
.icon-trash:before { content: "🗑️"; }

/* 右侧内容区样式 */
.content {
  flex: 1;
  padding: 25px;
  background-color: #f9f9f9;
  position: relative;
}

/* 对话框相关样式 */
.dialogContainer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialogOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.dialogContent {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 500px;
}

.dialog {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dialog h3 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 20px;
}

.formGroup {
  margin-bottom: 18px;
}

.formGroup label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.formGroup input[type="text"],
.formGroup select,
.formGroup textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.formGroup input[type="text"]:focus,
.formGroup select:focus,
.formGroup textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.formGroup textarea {
  min-height: 100px;
  resize: vertical;
}

.dialogButtons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}

.dialogButtons button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.dialogButtons button[type="button"] {
  background-color: #e0e0e0;
  color: #333;
}

.dialogButtons button[type="button"]:hover {
  background-color: #d0d0d0;
}

.dialogButtons button[type="submit"] {
  background-color: #3498db;
  color: white;
}

.dialogButtons button[type="submit"]:hover {
  background-color: #2980b9;
}

/* 搜索框样式 */
.searchBar {
  margin-bottom: 25px;
}

.searchBar input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s;
  background-color: white;
}

.searchBar input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 待办事项表格样式 */
.todoTable {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.todoTable th,
.todoTable td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.todoTable th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.todoTable tbody tr:hover {
  background-color: #f5f7fa;
}

.todoTable input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.status {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

.statusCompleted {
  background-color: #e6f7e6;
  color: #2e7d32;
}

/* 操作按钮样式 */
.actionButtons {
  display: flex;
  gap: 8px;
}

.editBtn,
.deleteBtn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.editBtn {
  background-color: #3498db;
  color: white;
}

.editBtn:hover {
  background-color: #2980b9;
}

.deleteBtn {
  background-color: #e74c3c;
  color: white;
}

.deleteBtn:hover {
  background-color: #c0392b;
}

/* 分页控件样式 */
.paginationContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
}

.paginationInfo {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.paginationSettings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.perPageSelector {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.perPageSelector select {
  padding: 6px 10px;
  margin-left: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.paginationControls {
  display: flex;
  gap: 5px;
}

.pageBtn {
  padding: 7px 12px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 36px;
}

.pageBtn:hover:not(:disabled) {
  background-color: #f0f0f0;
}

.pageBtnActive {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
}

.pageBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ellipsis {
  padding: 7px 8px;
  color: #666;
}

/* 无待办事项提示 */
.noTodos {
  text-align: center;
  color: #666;
  padding: 30px;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .appContainer {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .content {
    padding: 15px;
  }
  
  .dialogContent {
    width: 95%;
  }
  
  .todoTable thead {
    display: none;
  }
  
  .todoTable tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .todoTable td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 50%;
  }
  
  .todoTable td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #2c3e50;
  }
  
  .paginationSettings {
    flex-direction: column;
    align-items: center;
  }
  
  .paginationControls {
    margin-top: 10px;
    justify-content: center;
  }
}    